package com.zxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxy.pojo.entity.CourseContract;
import com.zxy.pojo.dto.ContractDTO;
import com.zxy.pojo.dto.CourseContractDTO;
import com.zxy.pojo.dto.PageDTO;
import com.zxy.pojo.vo.CourseContractResponseVO;
import com.zxy.pojo.vo.CourseListVo;

import java.util.List;

public interface ContractService extends IService<CourseContract> {
    //分页查询
    CourseContractResponseVO<CourseContractDTO> listContract(PageDTO pageDTO);

    //条件查询课程和学科信息
    List<CourseListVo> listSelectCourse(String subject,Long courseId);

    //渠道来源
    List<CourseListVo> listSelectActivity(String channel);

    //添加合同
    void addContract(ContractDTO contractDTO);

    //根据id回显数据
    CourseContractDTO detail(Long id);
}
